package halma;

import java.awt.event.KeyEvent;

import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

public class HalmaViewMenu {
	private JMenuBar menuBar;
	private JMenu menu, submenu;
	private JMenuItem menuItem;
	
	public HalmaViewMenu(JFrame frame, HalmaSettings.menu choice) {
		menuBar = new JMenuBar();
		
		switch(choice) {
		case defaultMenu:
			menu = new JMenu("Spiel");
			menuItem = new JMenuItem("Neues Spiel", KeyEvent.VK_T);
			menu.add(menuItem);
			menuBar.add(menu);
			
			menu = new JMenu("Beenden");
			menuBar.add(menu);
			break;
		}
		
		frame.setJMenuBar(menuBar);
	}
	

}
